<template>
  <view>
    <u-empty mode="page" :icon="statics + '404.png'" :text="message">
    </u-empty>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        statics: getApp().globalData.staticUrl,
        icon: "",
        message: ""
      }
    },
    onLoad(options) {
      let code = options.code ?? 10000;
      console.log(code)
      let error = new Map([
        [10000, "参数错误，请使用微信或者支付宝客户端打开"],
        [10001, "请使用微信或者支付宝客户端打开"]
      ])
      this.message = error.get(parseInt(code))
      
      /* switch (code) {
        case "10000":
          this.message = "参数错误，请使用支付宝/微信扫码打开";
          break;
        case "10001":
          this.message = "请使用微信或者支付宝客户端打开";
          break;
        default:
          this.message = "系统错误";
      } */
    },
    methods: {

    }
  }
</script>

<style>

</style>
